﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using HNCDataSetTableAdapters;

public partial class UserControl_header : System.Web.UI.UserControl
{
    InfoTableAdapter info = new InfoTableAdapter();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //ltrSocial.Text = loadSocial();
        }
    }

    //public string loadSocial()
    //{
        //string tem = "";
        //DataTable dt = info.GetInfoByID(1);
        //string Facebook = dt.Rows[0]["Facebook"].ToString();
        //string GooglePlus = dt.Rows[0]["GooglePlus"].ToString();
        //string GooglePlus1 = dt.Rows[0]["GooglePlus1"].ToString();
        //string GooglePlus2 = dt.Rows[0]["GooglePlus2"].ToString();
        //txtImage.ImageUrl = "~/UserUploads/Banner/" + dt.Rows[0]["Image"].ToString();
        //tem += "<li class=\"facebook\"><a target=\"_blank\" href=\"" + Facebook + "\">Facebook</a></li>";
        //tem += "<li class=\"googleplus\"><a target=\"_blank\" href=\"" + GooglePlus + "\">Google Plus</a></li>";
        //tem += "<li class=\"twitter\"><a target=\"_blank\" href=\"" + GooglePlus1 + "\">Twitter</a></li>";
        //tem += "<li class=\"youtube\"><a target=\"_blank\" href=\"" + GooglePlus2 + "\">Youtube</a></li>";
        //return tem;
    //}
}